package com.jdz.noise.Test;

import com.jdz.noise.service.FlyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Autowired
    private FlyService flyService;
    @GetMapping("/test/{data}")
    public String test(@PathVariable("data") String d){
        System.out.println(this.flyService.getFlyRowByIndicatedAirspeed(Double.parseDouble(d)).size());
        return "successful";
    }
    @GetMapping("/testmethod")
    public String testMethod(){
        return "success";
    }
}
